<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>文件上出纳</title>
    <script src="js/mui.min.js"></script>
            <script type="text/javascript" src="js/CryptoJS.js" ></script>
         <script src="js/key.js"></script>
     <script src="js/file-uploader.js"></script>
    <link href="css/mui.min.css" rel="stylesheet"/>
    <script type="text/javascript" charset="utf-8">
      	 mui.init();
      	 mui.ready(function () {
      	  document.getElementById("selectBtn").addEventListener("tap",function(){
      	  plus.gallery.pick(function(p) {
			plus.io.resolveLocalFileSystemURL(p, function(entry) {
				FileUploader.upload(entry.toLocalURL(), function(data) {
					console.log(data);
							
				});
					
				}, function(e) {
					mui.toast("读取相册文件错误：" + e.message);
				})
			});
      	  	
      	  },false)
      	  	
      	   	
      	  });
    </script>
</head>
<body>
	<div class="mui-content">
	    	<button id="selectBtn">
	    			</button>
	
	</div>

		
		

</body>
</html>